<!-- 工单审核 -->
<template>
  <VDispatchContent
    :id="id"
    :type-show="type"
  ></VDispatchContent>
</template>
<script setup lang="ts">
import VDispatchContent from './pillContent.vue'
import { watch } from 'vue'

import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const id = ref()
const type = ref(1)
watch(
  () => route,
  async () => {
    if (route.path == '/collection/process/pillManage/update') {
      id.value = route.query?.id
    }
  },
  { deep: true, immediate: true }
)
</script>
<style scoped lang="scss"></style>
